<html class="ui-mode-light">
<head>

	<meta charset="UTF-8">

	<link rel="icon" href="/icon.ico">
	<link rel="manifest" href="/manifest.json">

	<link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap.min.css">
	<link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap-grid.min.css">
	<link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css">
	<link rel="stylesheet" href="/node_modules/@fortawesome/fontawesome-free/css/all.min.css">
	<link rel="stylesheet" href="/node_modules/summernote/dist/summernote-bs4.css">

	<!--<link rel="stylesheet" href="/node_modules/@burtonator/react-buttons/dist/react-buttons.css">-->
	<link rel="stylesheet" href="/node_modules/@burtonator/react-dropdown/dist/react-dropdown.css">

	<!-- TODO: these need to load locally before we enable firebase in production -->
	<script src="/node_modules/firebase/firebase.js"></script>
	<script src="/node_modules/firebaseui/dist/firebaseui.js"></script>
	<link rel="stylesheet" href="/node_modules/firebaseui/dist/firebaseui.css" />

	<link rel="stylesheet" href="/node_modules/toastr/build/toastr.min.css">

	<link rel="stylesheet" href="/pdfviewer-custom/polar.css">

    <meta name="polar-doc-format" content="epub">

    <meta name="polar-fingerprint" content="">

    <!-- the current scale of the UI -->
    <meta name="polar-scale" content="1.0">

	<script src="/apps/init.js"></script>

	<noscript>
		You need to enable JavaScript to run this app.

		<a href="https://getpolarized.io/">Powered by Polar</a>

	</noscript>

	<script>

		const fallbackLoader = () => {

			// REQUIRE_ENTRY_POINT: there seems to be an Electron bug where when
			// loading over HTTP we can't find node_modules until we require().  We can
			// only find standard modules like 'fs' and 'electron' but not custom
			// modules so we have to just have these four lines repeated over and over
			// for each of our main apps.  In the future we should try to track down
			// why this is happening but I spent 1-2 hours on trying to figure out
			// the root cause with no resolution and this is a temporary workaround.

			if (typeof require === 'function') {

				const {remote} = require('electron');
				const path = require('path');
				const appPath = remote.getGlobal("appPath");

				require(path.join(appPath, "web", "js", "apps", "electron.js"));
			} else {
				console.warn("Not running within Electron");
			}

		};

		injectApp('/web/dist/chrome-bundle.js', fallbackLoader);

	</script>


	<style>

        iframe {
            z-index: -1;
        }

        iframe {
            display: block;
            /* z-index: -1; */
            margin-bottom: 10px;
            background-color: #ffffff;
        }

    </style>

</head>

<body class="polar-epubviewer" style="">

	<div class="page" data-page-number="1" id="viewerContainer">
	</div>

</body>
</html>
